using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using Water.Model; 

namespace Water.Data.Repositories.Mappings {
    
    
    public class BigValveOperateMap : ClassMap<BigValveOperate> {
        
        public BigValveOperateMap() {
			Table("Tbt_BigValveOperate");
			LazyLoad();
			Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
            Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
			Map(x => x.CloseDt).Column("CloseDt").Not.Nullable();
			Map(x => x.StartDt).Column("StartDt").Not.Nullable();
			Map(x => x.ZhuanCount).Column("ZhuanCount").Not.Nullable();
			Map(x => x.StartDirection).Column("StartDirection");
			Map(x => x.OperateQk).Column("OperateQk");
			Map(x => x.OperateEmp).Column("OperateEmp").Not.Nullable();
			Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
